package com.histone.grab_ticket.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;

@Document
@Data
public class UserEntity {
    @Id
    private String id;
    @Field
    private String username;
    @Field
    private String password;
    @Field
    private String phone;
    @Field
    private String address;
    @Field
    private String idNo; //身份证号
    @Field
    private String bankCardNo; //银行卡号
    @Field
    private LocalDateTime creatTime;

}
